Set the Compilation Options
Click the icon to open the PLC "Programmable Logic Controller" A Programmable Logic Controller, PLC, or Programmable Controller is a digital computer used for automation of industrial processes, such as control of machinery on factory assembly lines. Used to synchronize the flow of inputs from (physical) sensors and events with the flow of outputs to actuators and events options dialog box.
- Select the Debug option to use Step-By-Step Debugging during simulation or online testing.
- Select the Release option to if step-by-step debugging is not required and to give highest performance to the application.
When additional statements are incorporated in the code (e.g., trace outputs), you must select the Debug compiling mode so that they are taken into consideration (in RELEASE mode, those statements are not included).
For more information, see:
Code Generation
The code compilation options are: Normal and Optimized.
Normal
- Normal code:
- Allows the use of all PLC features in the KAS-IDE "Integrated development environment" An integrated development environment is a type of computer software that assists computer programmers in developing software. IDEs normally consist of a source code editor, a compiler and/or interpreter, build-automation tools, and a debugger and Runtime In computer science, runtime (or run-time) describes the operation of a computer program, the duration of its execution, from beginning to termination (compare compile time). Within KAS, runtime also refers to the virtual machine that manage the program written in a computer language while it is running.
- Generation creates P-code P-code machine or pseudo-code machine is a specification of a CPU whose instructions are expected to be executed in software rather than in hardware. Programs that have been translated to p-code are executed (interpreted) by a software program that emulates the behavior of the CPU specification and executes inside a virtual machine.
- Size Constraints: The P-code is smaller than the same program translated to C-code.
- Development and Debugging: Normal code allows breakpoints, step through PLC code, and use online change.
- Normal code is runtime In computer science, runtime (or run-time) describes the operation of a computer program, the duration of its execution, from beginning to termination (compare compile time). Within KAS, runtime also refers to the virtual machine that manage the program written in a computer language while it is running checks that would be harder to implement with Optimized code. so the interpreter can apply many additional
-
- Using Normal code is recommended to take advantage of all KAS PLC features unless the controller is unable to meet performance requirements.
Optimized
-
- The Optimize Code option is not available for the PCMM2G.
Optimized code generation:
- Creates C code (i.e., C programming language).
- Is compiled into native machine code.
- Supported by AKD PDMM and PCMM controllers.
- Executes directly and is significantly faster, allowing the controller to run more complex and faster PLC applications.
- Has these limitations:
- PLC Online Change is not available.
- WAIT / WAIT_TIME are not supported.
- Has these disabled features:
- Breakpoints
- Debugging (see Testing and Debugging the Project).
- Step-By-Step Debugging